<?php
/**
 * Created by PhpStorm.
 * User: bling
 * Date: 2017/1/7
 * Time: 14:09
 */
namespace Common\Logic;

use Think\Model;

class UsersLogic extends Model
{
        protected $_validate = array(
            //array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
            array('mobile', 'require', '手机号不能为空！', 1 ),
            array('mobile','','手机号已被注册！！',0,'unique',3),
            array('mobile','/^[0-9]{11}$/','手机号码必须为11位数字',0,'regex')
        );



}



